import request from '@/utils/request'

// 查询党统督办列表
export function listQuestion(query) {
  return request({
    url: '/system/question/list',
    method: 'get',
    params: query
  })
}

// 查询党统督办列表(发布环节)
export function listQuestionForPublish(query) {
  return request({
    url: '/system/question/listForPublish',
    method: 'get',
    params: query
  })
}

// 查询党统督办列表(整改环节)
export function listQuestionForReform(query) {
  return request({
    url: '/system/question/listForReform',
    method: 'get',
    params: query
  })
}

// 查询党统督办列表(审核环节)
export function listQuestionForCheck(query) {
  return request({
    url: '/system/question/listForCheck',
    method: 'get',
    params: query
  })
}

// 查询党统督办详细
export function getQuestion(id) {
  return request({
    url: '/system/question/' + id,
    method: 'get'
  })
}

// 新增党统督办
export function addQuestion(data) {
  return request({
    url: '/system/question',
    method: 'post',
    data: data
  })
}

// 修改党统督办
export function updateQuestion(data) {
  return request({
    url: '/system/question',
    method: 'put',
    data: data
  })
}

// 删除党统督办
export function delQuestion(id) {
  return request({
    url: '/system/question/' + id,
    method: 'delete'
  })
}
